package jwt

import (
	"gitee.com/hexug/go-tools/ioc"
)

const ConfName = "jwt"

type Jwt struct {
	SecretKey string `yaml:"secret_key" toml:"secret_key" env:"JWT_SECRETKEY"`
	Check     bool   `yaml:"check" toml:"check" env:"JWT_CHECK"`
}

func (m *Jwt) Init() error {
	return nil
}

func (m *Jwt) Name() string {
	return ConfName
}

// 注册未预定义的配置对象
func init() {
	ioc.Container.RegisterConf(
		&Jwt{
			Check: false,
		},
	)
}
